package com.sykj.shop.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sykj.model.Bag;
import com.sykj.shop.service.BagService;
import com.sykj.util.ManageBody;

@Controller
@RequestMapping("/lblb")
public class BagControoler {
	@Autowired
	BagService bagService;
	
	@RequestMapping("/list")
	@ResponseBody
	public ManageBody findAll(Bag bag,Model model){
		List<Bag> findAll = bagService.selectBagAll();
		System.out.println("=========================");
		return ManageBody.getData(findAll.size(), findAll, "");
		
	}
}
